using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CreateObj : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        CreateAttack(this.transform);
    }

    // Update is called once per frame
    void Update()
    {
        
    }


    private void CreateAttack(Transform transform)
    {
        var s1 = GameObject.CreatePrimitive(PrimitiveType.Sphere);
        s1.transform.position = transform.TransformPoint(new Vector3(0, 0, 1));

        var s2 = GameObject.CreatePrimitive(PrimitiveType.Sphere);
        s2.transform.position = transform.TransformPoint(new Vector3(0, 0, 2));

        var s3 = GameObject.CreatePrimitive(PrimitiveType.Sphere);
        s3.transform.position = transform.TransformPoint(new Vector3(0, 0, 3));
    }

}
